import {view, ViewGroup} from "adajs";
import NewsService from "./state.js";
import List from './../../lists';

@view({
    className: "theorydetail",
    template: "./template.html",
    style: "./style.scss",
    dataset: {
        service: NewsService
    }
})
class News extends ViewGroup {
    tags() {
        return {
            list: List
        };
    }

    refreshList() {
        this.commit("refresh");
    }
}

export default News;